package com.aorise.model.expose;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zhouhao
 * @Date: 2019/7/11
 * @Description:    箱门信息
 */
@Validated
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="Door",description="箱门信息")
public class Door {

    @ApiModelProperty(value = "已经输入正确的密码:true,否则:false",example = "true",dataType = "boolean")
    @NotNull(message = "Auth不能为空")
    private boolean Auth;

    @ApiModelProperty(value = "已经输入正确的密码:true,否则:false",example = "true",dataType = "boolean")
    @NotNull(message = "Open不能为空")
    private boolean Open;

    @JsonProperty("Auth")
    public boolean isAuth() {
        return Auth;
    }

    @JsonProperty("Auth")
    public void setAuth(boolean auth) {
        Auth = auth;
    }

    @JsonProperty("Open")
    public boolean isOpen() {
        return Open;
    }

    @JsonProperty("Open")
    public void setOpen(boolean open) {
        Open = open;
    }
}
